<?


	// Set holiday search criteria
    $holiday_search_criteria['destination_tree_id'] = $_COOKIE['destination_tree_id'];
    if($_COOKIE['date_day']){
		$holiday_search_criteria['date_day'] = $_COOKIE['date_day'];
	}else{
		$holiday_search_criteria['date_day'] = date('j');
	}
    if($_COOKIE['date_month']){
		$holiday_search_criteria['date_month'] = $_COOKIE['date_month'];
	}else{
		$holiday_search_criteria['date_month'] = date('n');
	}
    if($_COOKIE['nights']){
		$holiday_search_criteria['date_month'] = $_COOKIE['date_month'];
	}else{
		$holiday_search_criteria['date_month'] = '7';
	}
    if($_COOKIE['give_take']){
		$holiday_search_criteria['give_take'] = $_COOKIE['give_take'];
	}else{
		$holiday_search_criteria['give_take'] = '3';
	}
    $holiday_search_criteria['pax_adult'] = $_COOKIE['pax_adult'];
    $holiday_search_criteria['pax_child'] = $_COOKIE['pax_child'];


	
	// Set hotel search criteria
    $hotel_search_criteria['destination_tree_id'] = $_COOKIE['destination_tree_id'];
    if($_COOKIE['date_day']){
		$hotel_search_criteria['date_day'] = $_COOKIE['date_day'];
	}else{
		$hotel_search_criteria['date_day'] = date('j');
	}
    if($_COOKIE['date_month']){
		$hotel_search_criteria['date_month'] = $_COOKIE['date_month'];
	}else{
		$hotel_search_criteria['date_month'] = date('n');
	}
    if($_COOKIE['nights']){
		$hotel_search_criteria['date_month'] = $_COOKIE['date_month'];
	}else{
		$hotel_search_criteria['date_month'] = '7';
	}
    $hotel_search_criteria['no_rooms'] = $_COOKIE['no_rooms'];
    $hotel_search_criteria['room_adults_1'] = $_COOKIE['room_adults_1'];
    $hotel_search_criteria['room_children_1'] = $_COOKIE['room_children_1'];
    $hotel_search_criteria['room_adults_2'] = $_COOKIE['room_adults_2'];
    $hotel_search_criteria['room_children_2'] = $_COOKIE['room_children_2'];      
	$hotel_search_criteria['room_adults_3'] = $_COOKIE['room_adults_3'];
    $hotel_search_criteria['room_children_3'] = $_COOKIE['room_children_3'];     




?>



<!-- Start left col -->

<div class="col_180 margin_right_10">





<div class="box_search box_margin">
<div class="box_search_shoe">
<div class="box_search_cap">


<div class="box_search_tabs">


	<ul>
		<li id="search_tab_holidays" class="search_tab_holidays_on" title="Last minute holidays"><div class="search_tab_holidays_div"><input name="search_type" id="search_type_holidays" value="holidays" type="radio" class="search_tab_radio" checked="checked" /><label class="search_form_label" for="search_type_holidays">Holidays</label></div></li>
		<li id="search_tab_hotels" class="search_tab_hotels_off" title="cheap hotels"><div class="search_tab_hotels_div"><input name="search_type" id="search_type_hotels" value="hotels" type="radio" class="search_tab_radio" /><label class="search_form_label" for="search_type_hotels">Hotels</label></div></li>
	</ul>

</div>




<div class="box_padding_search">










<!-- Start Package holiday form -->

<div id="form_package">

<form action="/holidays/results_group.php" method="get" title="Holidays">


<input type="hidden" name="holiday_search" value="search" />


      
<div class="search_form_row">

<div class="search_form_label_row">
<div class="search_label"><label class="search_form_label" for="destination_tree_id">Destination</label></div>
</div>
<? 
$destination_menu_class = "search_form_select_long";
require SITE_ROOT_PATH."/_lib/html/html_destination_menu.php";
?>
</div>










<div class="search_form_row">

<div class="search_form_label_row">
<div class="search_label"><label class="search_form_label" for="departure_airport">Departure airport</label></div>
</div>

<? 
$departure_menu_class = "search_form_select_long";
require SITE_ROOT_PATH."/_lib/html/html_departure_menu.php";
?>

</div>


      
      
      

	


<? 


// Get the dates you want to display 
$input_dates = date_output(); 

?> 

	
<div class="search_form_row">

<div class="search_form_label_row">
<div class="search_label"><label class="search_form_label" for="date_day">Date leaving</label></div>
</div>

<div class="search_form_day_col">
<select name="date_day" id="holidays-date-day" class="search_form_select_day">
<?
	foreach($input_dates['days'] as $day){
?>
<option value='<?= $day['value'] ?>' <?= selected($day['value'],$holiday_search_criteria['date_day']) ?> ><?= $day['description'] ?></option>
<?
	}

?>
</select>
</div>

<div class="search_form_month_col">
<select name="date_month" id="holidays-date-month" class="search_form_select_month">
<?
	foreach($input_dates['months_year'] as $month_year){
?>
<option value='<?= $month_year['value'] ?>'  <?= selected($month_year['value'],$holiday_search_criteria['date_month']) ?>  ><?= $month_year['description'] ?></option>

<?
	}

?>
</select>
</div>


<div class="search_form_datepicker_col">
<input id="datepicker-holidays" type="hidden" />
</div>


<div class="clearing"></div>
</div>

	  





<div class="search_form_row">

<div class="search_form_label_row">
<div class="search_label"><label class="search_form_label" for="give_take">Give or take</label></div>
</div>
	
<select name="give_take" id="give_take" <?= $search_form_fields_class ?>>
  <option value="1" <?= selected($holiday_search_criteria['give_take'],'1') ?>>1 day</option>
  <option value="2" <?= selected($holiday_search_criteria['give_take'],'2') ?>>2 days</option>
  <option value="3" <?= selected($holiday_search_criteria['give_take'],'3') ?>>3 days</option>
  <option value="4" <?= selected($holiday_search_criteria['give_take'],'4') ?>>4 days</option>
  <option value="5" <?= selected($holiday_search_criteria['give_take'],'5') ?>>5 days</option>
</select>
    
</div>






<div class="search_form_row">

<div class="search_form_label_row">
<div class="search_label"><label class="search_form_label" for="nights">Nights</label></div>
</div>
	<select name="nights" id="nights" <?= $search_form_fields_class ?>>
	  <option value="">Any</option>
      <option value="4" <?= selected($holiday_search_criteria['nights'],'4') ?>>3 - 5 nights</option>
      <option value="7" <?= selected($holiday_search_criteria['nights'],'7') ?> >6 - 8 nights</option>
      <option value="11" <?= selected($holiday_search_criteria['nights'],'11') ?>>9 - 12 nights</option>
      <option value="14" <?= selected($holiday_search_criteria['nights'],'14') ?>>13+ nights</option>
    </select>

</div>







<div class="search_form_row">

<div class="search_form_label_row">
<div class="search_label"><label class="search_form_label" for="pax_adult">No. of passengers</label></div>
</div>

	
	<select name="pax_adult" id="pax_adult" class="search_form_select_short">
	  <option value="2" <?= selected($holiday_search_criteria['pax_adult'],'2') ?>>2</option>      
      <option value="3" <?= selected($holiday_search_criteria['pax_adult'],'3') ?>>3</option>
	  <option value="4" <?= selected($holiday_search_criteria['pax_adult'],'4') ?>>4</option>
      <option value="5" <?= selected($holiday_search_criteria['pax_adult'],'5') ?>>5</option>
	  <option value="6" <?= selected($holiday_search_criteria['pax_adult'],'6') ?>>6</option>
	  <option value="7" <?= selected($holiday_search_criteria['pax_adult'],'7') ?>>7</option>
	  <option value="8" <?= selected($holiday_search_criteria['pax_adult'],'8') ?>>8</option>
    </select><span class="adult_small_text">Adult</span><select name="pax_child" id="pax_child" class="search_form_select_short">
		<option value="0" <?= selected($holiday_search_criteria['pax_child'],'0') ?>>0</option> 
		<option value="1" <?= selected($holiday_search_criteria['pax_child'],'1') ?>>1</option>   
		<option value="2" <?= selected($holiday_search_criteria['pax_child'],'2') ?>>2</option>  
		<option value="3" <?= selected($holiday_search_criteria['pax_child'],'3') ?>>3</option>
		<option value="4" <?= selected($holiday_search_criteria['pax_child'],'4') ?>>4</option>
		<option value="5" <?= selected($holiday_search_criteria['pax_child'],'5') ?>>5</option>
		<option value="6" <?= selected($holiday_search_criteria['pax_child'],'6') ?>>6</option>
    </select><span class="adult_small_text">Child</span>
    
</div>
	

<div class="search_form_button_row">
<input type="image" src="/images/button_search.gif" value="submit" class="search_form_button" />
</div>

</form>

</div>

<!-- End Package holiday form -->























<!-- Start hotel search form -->

<div id="form_hotel">

<form method="post" action="/hotels/results.php" >

<input type="hidden" name="search_hotels" value="true" />


<div class="search_form_row">

<div class="search_form_label_row">
<div class="search_label"><label class="search_form_label" for="destination_tree_id">Destination</label></div>
</div>
<? 
$destination_menu_class = "search_form_select_long";
require SITE_ROOT_PATH."/_lib/html/html_destination_menu.php";
?>
</div>


<!--

<div class="search_form_row">

<div class="search_form_label_row">
<div class="search_label"><label class="search_form_label" for="resort_tree_id">Resort</label></div>
</div>
<select name="resort_tree_id" id="resort_tree_id" class="search_form_select_long">
	<option value="53">San Antonio</option>
</select>

</div>

-->




<? 


// Get the dates you want to display 
$input_dates = date_output(); 

?> 


<div class="search_form_row">

<div class="search_form_label_row">
<div class="search_label"><label class="search_form_label" for="date_day">Date arriving</label></div>
</div>

<div class="search_form_day_col">
<select name="date_day" id="hotels-date-day" class="search_form_select_day">
<?
	foreach($input_dates['days'] as $day){
?>
<option value='<?= $day['value'] ?>' <?= selected($day['value'], $hotel_search_criteria['date_day']) ?> ><?= $day['description'] ?></option>
<?
	}

?>
</select>
</div>

<div class="search_form_month_col">
<select name="date_month" id="hotels-date-month" class="search_form_select_month">
<?
	foreach($input_dates['months_year'] as $month_year){
?>
<option value='<?= $month_year['value'] ?>'  <?= selected($month_year['value'],$hotel_search_criteria['date_month']) ?>  ><?= $month_year['description'] ?></option>
<?
	}

?>
</select>
</div>

<div class="search_form_datepicker_col">
<input id="datepicker-hotels" type="hidden" />
</div>


<div class="clearing"></div>
</div>








<div class="search_form_row">

<div class="search_form_label_row">
<div class="search_label"><label class="search_form_label" for="nights">Nights</label></div>

</div>
    
	<select name="nights" id="nights" class="search_form_select_med">
      <option value="3" <?= selected($hotel_search_criteria['nights'],'3') ?>>3</option>
      <option value="4" <?= selected($hotel_search_criteria['nights'],'4') ?>>4</option>
      <option value="5" <?= selected($hotel_search_criteria['nights'],'5') ?>>5</option>
	  <option value="6" <?= selected($hotel_search_criteria['nights'],'6') ?>>6</option>
      <option value="7" <?= selected($hotel_search_criteria['nights'],'7') ?>>7</option>
      <option value="8" <?= selected($hotel_search_criteria['nights'],'8') ?>>8</option>
      <option value="9" <?= selected($hotel_search_criteria['nights'],'9') ?>>9</option>
      <option value="10" <?= selected($hotel_search_criteria['nights'],'10') ?>>10</option>
      <option value="11" <?= selected($hotel_search_criteria['nights'],'11') ?>>11</option>
      <option value="12" <?= selected($hotel_search_criteria['nights'],'12') ?>>12</option>
      <option value="13" <?= selected($hotel_search_criteria['nights'],'13') ?>>13</option>
      <option value="14" <?= selected($hotel_search_criteria['nights'],'14') ?>>14</option>
    </select>

</div>













<div class="search_form_row no_margin">

<div class="search_form_label_row">
<div class="search_label"><label class="search_form_label" for="no_rooms">No. Rooms</label></div>
</div>

	<select name="no_rooms" id="no_rooms" class="search_form_select_med">
      <option value="1" <?= selected($hotel_search_criteria['no_rooms'],'1') ?>>1</option>
      <option value="2" <?= selected($hotel_search_criteria['no_rooms'],'2') ?>>2</option>
      <option value="3" <?= selected($hotel_search_criteria['no_rooms'],'3') ?>>3</option>
    </select>

</div>


<div class="search_form_label_row">
<div class="search_label_small search_form_room_col">&nbsp;</div>
<div class="search_label_small search_form_room_adult_col">Adults</div>
<div class="search_label_small search_form_room_child_col">Children</div>
</div>



<!-- Start room 1 --->
<div id="room-1" class="search_form_row_room">

<div class="search_form_room_label search_form_room_col">Room 1</div>

<div class="search_form_room_adult_col">
<select name="room_adults_1" class="search_form_select_short">
	<option value="1" <?= selected($hotel_search_criteria['room_adults_1'],'1') ?>>1</option>
    <option value="2" <?= selected($hotel_search_criteria['room_adults_1'],'2') ?>>2</option>
    <option value="3" <?= selected($hotel_search_criteria['room_adults_1'],'3') ?>>3</option>
    <option value="4" <?= selected($hotel_search_criteria['room_adults_1'],'4') ?>>4</option>
</select>
</div>

<div class="search_form_room_child_col">
<select name="room_children_1" class="search_form_select_short">
    <option value="0" <?= selected($hotel_search_criteria['room_children_1'],'0') ?>>0</option>
	<option value="1" <?= selected($hotel_search_criteria['room_children_1'],'1') ?>>1</option>
    <option value="2" <?= selected($hotel_search_criteria['room_children_1'],'2') ?>>2</option>
    <option value="3" <?= selected($hotel_search_criteria['room_children_1'],'3') ?>>3</option>
    <option value="4" <?= selected($hotel_search_criteria['room_children_1'],'4') ?>>4</option>
</select>
</div>

<div class="clearing"></div>

</div>
<!-- End room 1 --->



<!-- Start room 2 --->
<div id="room-2" class="search_form_row_room">

<div class="search_form_room_label search_form_room_col">Room 2</div>

<div class="search_form_room_adult_col">
<select name="room_adults_2" class="search_form_select_short">
	<option value="1" <?= selected($hotel_search_criteria['room_adults_2'],'1') ?>>1</option>
    <option value="2" <?= selected($hotel_search_criteria['room_adults_2'],'2') ?>>2</option>
    <option value="3" <?= selected($hotel_search_criteria['room_adults_2'],'3') ?>>3</option>
    <option value="4" <?= selected($hotel_search_criteria['room_adults_2'],'4') ?>>4</option>
</select>
</div>

<div class="search_form_room_child_col">
<select name="room_children_2" class="search_form_select_short">
    <option value="0" <?= selected($hotel_search_criteria['room_children_2'],'0') ?>>0</option>
	<option value="1" <?= selected($hotel_search_criteria['room_children_2'],'1') ?>>1</option>
    <option value="2" <?= selected($hotel_search_criteria['room_children_2'],'2') ?>>2</option>
    <option value="3" <?= selected($hotel_search_criteria['room_children_2'],'3') ?>>3</option>
    <option value="4" <?= selected($hotel_search_criteria['room_children_2'],'4') ?>>4</option>
</select>
</div>

<div class="clearing"></div>

</div>
<!-- End room 2 --->

<!-- Start room 3 --->
<div id="room-3" class="search_form_row_room">

<div class="search_form_room_label search_form_room_col">Room 3</div>

<div class="search_form_room_adult_col">
<select name="room_adults_3" class="search_form_select_short">
	<option value="1" <?= selected($hotel_search_criteria['room_adults_3'],'1') ?>>1</option>
    <option value="2" <?= selected($hotel_search_criteria['room_adults_3'],'2') ?>>2</option>
    <option value="3" <?= selected($hotel_search_criteria['room_adults_3'],'3') ?>>3</option>
    <option value="4" <?= selected($hotel_search_criteria['room_adults_3'],'4') ?>>4</option>
</select>
</div>

<div class="search_form_room_child_col">
<select name="room_children_3" class="search_form_select_short">
    <option value="0" <?= selected($hotel_search_criteria['room_children_3'],'0') ?>>0</option>
	<option value="1" <?= selected($hotel_search_criteria['room_children_3'],'1') ?>>1</option>
    <option value="2" <?= selected($hotel_search_criteria['room_children_3'],'2') ?>>2</option>
    <option value="3" <?= selected($hotel_search_criteria['room_children_3'],'3') ?>>3</option>
    <option value="4" <?= selected($hotel_search_criteria['room_children_3'],'4') ?>>4</option>
</select>
</div>

<div class="clearing"></div>

</div>
<!-- End room 3 --->




<div class="search_form_button_row">
<input type="image" src="/images/button_search.gif" value="submit" class="search_form_button" />
</div>


</form>

</div>

<!-- End hotel search form -->
















</div>



</div>
</div>
</div>







<!-- Start newsletter signup -->

<div class="box_or_180_cap box_margin">
<div class="box_or_180_shoe">
<div class="box_padding">

<h3 class="h3_white_plain">Get The Best Deals</h3>

	<form action="/newsletter.php" method="post" class="newsletter_form" name="newsletter_form">
	
	<input type="hidden" name="action" value="validate"/>
	
	<p class="white margin_bottom_5">Get our best <strong>Late Deals</strong> sent straight to your inbox.</p>
	
	<table class="newsletter_table">
	<tr>
	<td><input type="text" name="epost" class="text_newsletter_signup" value="Your email address" onblur="if(!this.value) this.value='Your email address';" onfocus="if(this.value) this.value='';" /></td>
	<td><div style="margin-left: 10px; text-align: center"><input type="image" src="/images/button_go_blue.gif" value="submit" alt="Submit" /></div></td>
	</tr></table>
		
	
	</form>
</div>
</div>
</div>

<!-- End newsletter signup -->








<!-- Start banner box -->


<div class="box_std">
<? require_once SITE_ROOT_PATH."/_lib/html/banners/banner_left_col.php" ?>
</div>


<!-- End banner box -->











</div>
<!-- End left column -->






